package swc.smu.ui;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.LinearLayout;

import java.util.ArrayList;
import java.util.List;

import butterknife.Bind;
import butterknife.ButterKnife;
import swc.smu.ui.custom.DefineGridView;
import swc.smu.ui.custom.SelectSeatView;

public class GridActivity extends BaseActivity {

    @Bind(R.id.define_grid_view)
    SelectSeatView mSelectSeatView;
    //DefineGridView defineGridView;

    @Bind(R.id.container_id)
    LinearLayout llLayout;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_grid);
        ButterKnife.bind(this);
        initView();
    }

    private void initView() {
        List<String> list = new ArrayList<String>();
        for(int i = 0; i < 20; i++) {
            list.add(i+"");
        }
        mSelectSeatView.setLabelText("贾松松");
        mSelectSeatView.setLeftLabel(list);
        mSelectSeatView.setTopLabel(list);

        mSelectSeatView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Log.i("jss", "defineGridView clickListener");
            }
        });

        llLayout.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {
                Log.i("jss", "LinearLayout clickListener");
            }
        });
    }
}
